Skip to content

Create the status updater's directory first - #576

Merged
hategan merged 2 commits into
ExaWorks:mainfrom
hat-im:status-updater-makes-its-directory
Nov 17, 2026
Merged

hategan merged 2 commits into
ExaWorks:mainfrom
hat-im:status-updater-makes-its-directory

Conversation

@hat-im

@hat-im hat-im commented Nov 17, 2026

Copy link
Copy Markdown
Contributor
  • Create ~/.psij in _StatusUpdater._create_update_file before making the supd_ file in it, so the status updater starts in a home that has no .psij yet.
  • Start a batch executor with HOME set to an empty directory in test_status_updater.py; the test fails without this change.

BatchSchedulerExecutor.__init__ starts its queue poll thread, and with it the status updater, before it creates its work directory under ~/.psij. In a fresh home, JobExecutor.get_instance("slurm") then fails with FileNotFoundError: …/.psij/supd_…. The local executor creates ~/.psij/work/local first, so it is unaffected.

@hategan

hategan commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator

Looks good. Thanks!

@hategan
hategan merged commit 387ac31 into ExaWorks:main Nov 17, 2026
6 of 11 checks passed
@hat-im
hat-im deleted the status-updater-makes-its-directory branch November 17, 2026 15:57
@hat-im hat-im changed the title Create the status updater's directory before its update file Create the status updater's directory first Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants